package com.maimao.kill.client;

import com.maimao.core.constant.ServiceContainer;
import com.maimao.core.interceptor.FeignInterceptor;
import com.maimao.core.model.resp.Result;
import com.maimao.kill.client.fallback.ShopFallBackFactory;
import com.maimao.model.user.Shop;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author MaoLin Wang
 * @date 2020/12/22 7:54 下午
 */
@RequestMapping("/web/shop")
@FeignClient(contextId = "shopClient", value = ServiceContainer.USER_SERVICE, fallbackFactory = ShopFallBackFactory.class, configuration = FeignInterceptor.class)
public interface ShopClient {

    @GetMapping("/one/mmin")
    Result<Shop> queryByIdIn(@RequestParam("id") Long id);


}
